package com.tedu.review.day02;

import java.io.Serializable;

/**
 * 重点：JavaBean Java实体类|Java豆
 *
 */
public class person implements Serializable {
    private String name;   //成员变量未赋值【没有初始化】
    private int age;
    private char sex;

    public person(String name, int age, char sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }
//设置set和get方法，设置属性|成员变量的获取以及设置方法
}
